<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="X-UA-Compatible" content="IE=edge" />
	<meta name="keywords" content="秘书学系" />
	<meta name="description" content="XX大学秘书学系" />
	<title>秘书学系</title>
	<link rel="stylesheet" type="text/css" href="css/style.css" />
	<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
		integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
	<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
	<link rel="stylesheet" href="Global.css">
</head>


<body>
	<!--header-->
	<div class="top_wrap">
		<!--top index-->
		<div class="top">
			<span class="welcome">欢迎您访问勤工俭学管理系统网站！</span>
			<div class="corner">
				<a id="loginLink" href="sign-in.html">登录</a>
				<span>&nbsp;</span>
				<a href="sign-up.html" title="注册">注册</a>
			</div>
			<div id="userInfo" style="display: none; float: right;">
				<!-- 用户信息显示区域 -->
				<img id="userAvatar" src="" alt="userAvatar" style="width: 30px; height: 30px; display: inline-block;">
				<p id="userName" style="display: inline-block; vertical-align: middle;">1111111</p>
				<div style="display: inline-block;">
					<button style="width: 60px;height: 40px;">个人中心</button>
				</div>
			</div>

			<div class="clear"></div>
		</div>
	</div>
	<!--logo and nav-->
	<div class="header_wrap">
		<div class="header">
			<a href="index.html" class="logo"><img src="images/logo.jpg" /></a>
			<div class="nav_list">
				<ul id="nav" class="nav clearfix">
					<li class="nLi" style="display: none;"></li>
					<li class="nLi">
						<h3><a href="about.html">秘书学系</a></h3>
						<ul class="sub">
							<li><a href="about.html">专业简介</a></li>
							<li><a href="about.html">培养方案</a></li>
						</ul>
					</li>
					<li class="nLi">
						<h3><a href="teachers.html">师资与科研</a></h3>
						<ul class="sub">
							<li><a href="teachers.html">师资力量</a></li>
							<li><a href="technology.html">科研成果</a></li>
						</ul>
					</li>
					<li class="nLi">
						<h3><a href="study.html">文秘学子</a></h3>
						<ul class="sub">
							<li><a href="study.html">学习成果</a></li>
							<li><a href="study.html">活动掠影</a></li>
							<li><a href="student.html">优秀毕业生</a></li>
						</ul>
					</li>
					<li class="nLi">
						<h3><a href="serve.html">社会服务</a></h3>
						<ul class="sub">
							<li><a href="serve.html">对外培训</a></li>
							<li><a href="serve.html">志愿服务</a></li>
							<li><a href="serve.html">秘书职业资格证</a></li>
						</ul>
					</li>
					<li class="nLi">
						<h3><a href="resource.html">资源共享</a></h3>
						<ul class="sub">
							<li><a href="resource.html">技能类</a></li>
							<li><a href="resource.html">法文类</a></li>
							<li><a href="resource.html">其他</a></li>
							<li><a href="resource.html">探秘天下</a></li>
						</ul>
					</li>
				</ul>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<!--banner-->
	<!--轮播图-->
	<div id="carouselExampleCaptions" class="carousel slide mt-4" data-ride="carousel">
		<ol class="carousel-indicators">
			<li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
			<li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
			<li data-target="#carouselExampleCaptions" data-slide-to="2"></li>
		</ol>
		<div class="carousel-inner">
			<div class="carousel-item active">
				<img src="images\banner1.jpg" class="d-block w-100" alt="...">
				<div class="carousel-caption d-none d-md-block">
					<h5>First slide label</h5>
					<p>Some representative placeholder content for the first slide.</p>
				</div>
			</div>
			<div class="carousel-item">
				<img src="images\banner1.jpg" class="d-block w-100" alt="...">
				<div class="carousel-caption d-none d-md-block">
					<h5>Second slide label</h5>
					<p>Some representative placeholder content for the second slide.</p>
				</div>
			</div>
			<div class="carousel-item">
				<img src="images\banner1.jpg" class="d-block w-100" alt="...">
				<div class="carousel-caption d-none d-md-block">
					<h5>Third slide label</h5>
					<p>Some representative placeholder content for the third slide.</p>
				</div>
			</div>
		</div>
		<button class="carousel-control-prev" type="button" data-target="#carouselExampleCaptions" data-slide="prev">
			<span class="carousel-control-prev-icon" aria-hidden="true"></span>
			<span class="sr-only">Previous</span>
		</button>
		<button class="carousel-control-next" type="button" data-target="#carouselExampleCaptions" data-slide="next">
			<span class="carousel-control-next-icon" aria-hidden="true"></span>
			<span class="sr-only">Next</span>
		</button>
	</div>
	<!--content-->
	<div class="content">
		<div class="left_tab">
			<div class="hd">
				<ul>
					<li class="first">兼职岗位</li>
					<li class="second">校内兼职</li>
					<li class="third">校外兼职</li>
				</ul>
			</div>
			<div class="bd">
				<div class="box">
					<a href="about1.html" class="more">MORE+</a>
					<ul class="clearfix">
						<li><a href="about1.html"></a>
							<div class="cookie-card">
								<span class="title">🍪 java开发实习</span><br>
								<span class="title">🍪 100.00</span>
								<p class="description">Description: 扎实的java编程基础,精通 Java ee、SOA、OSG等相关技术; 对各种开源的框架如
									Spring、 Hibernate等有深入的了解,对框架本身有过开发或重构者可优先考虑...</p>
								<div>
									<span class="">北海</span>
									<span class="">8h</span>
									<span class="">海域科技</span>
									<p>线上</p>
									<p>2024-3-24</p>
								</div>
								<div class="actions">
									<button class="pref">
										查看详情
									</button>
									<button class="accept">
										申请
									</button>
								</div>
							</div>
						</li>
						<!-- 用于显示岗位信息的容器 -->
						<div id="jobListings"></div>
					</ul>
				</div>
				<div class="box">
					<a href="secret.html" class="more">MORE+</a>
					<ul class="clearfix">
						<li><a href="secret.html"><img src="images/s1.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="secret.html"><img src="images/s2.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="secret.html"><img src="images/s3.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="secret.html"><img src="images/s4.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="secret.html"><img src="images/s5.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="secret.html"><img src="images/s6.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
					</ul>
				</div>
				<div class="box">
					<a href="news.html" class="more">MORE+</a>
					<ul class="clearfix">
						<li><a href="nDetail.html"><img src="images/n1.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="nDetail.html"><img src="images/n2.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="nDetail.html"><img src="images/n3.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="nDetail.html"><img src="images/n4.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="nDetail.html"><img src="images/n5.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
						<li><a href="nDetail.html"><img src="images/n6.jpg" />
								<h4>标题名称标题名称标题名称标题名称标题名称</h4><span class="date">2016-05-05</span>
							</a></li>
					</ul>
				</div>
			</div>
		</div>
		<div class="right_box">
			<!--notice-->
			<div class="notice">
				<div class="n_title">
					<b>最新通知</b>
					<a href="notice.html">MORE+</a>
				</div>
				<div class="bd">
					<ul class="infoList">
						<li><a href="nDetail.html">通知标题通知标题，通知标题通知标题通知标题通知标题。</a><span class="date">2016-05-11</span>
						</li>
						<li><a href="nDetail.html">通知标题通知标题，通知标题通知标题通知标题通知标题。</a><span class="date">2016-05-11</span>
						</li>
						<li><a href="nDetail.html">通知标题通知标题，通知标题通知标题通知标题通知标题。</a><span class="date">2016-05-11</span>
						</li>
						<li><a href="nDetail.html">通知标题通知标题，通知标题通知标题通知标题通知标题。</a><span class="date">2016-05-11</span>
						</li>
						<li><a href="nDetail.html">通知标题通知标题，通知标题通知标题通知标题通知标题。</a><span class="date">2016-05-11</span>
						</li>
						<li><a href="nDetail.html">通知标题通知标题，通知标题通知标题通知标题通知标题。</a><span class="date">2016-05-11</span>
						</li>
					</ul>
				</div>
			</div>
			<!--code-->
			<div class="code">
				<img src="images/er.jpg" />
			</div>
		</div>
		<div class="clear"></div>

		<div class="product_big mt30 pb50">
			<div class="product_content">
				<div class="product_soft">
					<div class="product_left">
						<img src="images/n6.jpg" />
					</div>
					<div class="product_left">
						<h2>实验室信息管理软件</h2>
						<p>在这个竞争激烈的时代，信息化的重要性空前突出；大量的企业开始注重利用信息化手段优化企业管理、增强企业核心竞争力。企业不仅要通过降低成本提高效率来保障企业利润，更需要在信息化建设中结合业务发展不断创新；通过规范管理、知识整合及传递、从提高单一效率到通过协同提高企业整体效率等都是当前企业家重点考虑的问题。而通过网络化的协同信息化系统来改善管理运作是其中之一必要的解决方案。
						</p>
						<a href="#">查看更多</a>
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>

		<div class="product_big mt30 pb50">
			<div class="product_content">
				<div class="product_soft">
					<div class="product_left">
						<h2>公路工程数据质量监控管理系统软件</h2>
						<p>系统包含质量检测管理监控信息平台、人员考勤系统、质量信息数据终端管理软件(TAM、QIE)、压力机和万能试验机数据采集与监控系统、试验室视频监控系统、张拉压机系统 。
							系统包含质量检测管理监控信息平台、人员考勤系统、质量信息数据终端管理软件(TAM、QIE)、压力机和万能试验机数据采集与监控系统、试验室视频监控系统、张拉压机系统、混凝土拌合站动态数据
						</p>
						<a href="#">查看更多</a>
					</div>
					<div class="product_right">
						<img src="images/n6.jpg" />
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>

		<div class="friend_link">
			<b>友情链接：</b><a href="" target="_blank">XX研究中心</a><a href="" target="_blank">XX研究所</a>
		</div>
	</div>
	<!--footer-->
	<div class="footer_wrap">
		<div class="line"></div>
		<div class="footer">
			<div class="f_left">
				<img src="images/f_logo.png" class="f_logo" />
				<div class="contact">
					<p><a href="contact.html">联系我们</a><a href="javascrip:void(0);">站长统计</a></p>
					<p>XX校区&nbsp;&nbsp;&nbsp;&nbsp;所在地址：XXXXXXXXXXXX</p>
					<p>版权所有： XX大学秘书学系&nbsp;&nbsp;&nbsp;&nbsp;电话：029-8888888&nbsp;&nbsp;&nbsp;&nbsp;更多模板：<a
							href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
				</div>
			</div>
			<div class="f_right">
				<p><a href="" style="text-decoration: underline;">XX官网入口</a></p>
				<p><a href=""></a></p>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<!-- 定义可重用的模板 -->
	<template id="reusable-block">
		<div class="card">
			<h2>Title</h2>
			<p>Content</p>
		</div>
	</template>
	<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="js/jquery.SuperSlide.2.1.js"></script>
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript">
		//banner滚动效果
		jQuery(".banner").slide({ titCell: ".hd ul", mainCell: ".bd ul", effect: "fold", autoPlay: true, autoPage: true, trigger: "click" });
		//tab切换效果
		jQuery(".left_tab").slide();
		//news滚动效果
		jQuery(".notice").slide({ mainCell: ".bd ul", autoPage: true, effect: "top", autoPlay: true, vis: 3 });

		// your_script.js

		$(document).ready(function () {
			// Retrieve data from session storage
			var userData = JSON.parse(sessionStorage.getItem('userData'));
			console.log('User data on homepage:', userData);

			// Check if userData exists
			if (userData) {
				// Hide login and registration links
				$('#loginLink, .corner a[href="sign-up.html"]').hide();

				// Display student's information
				$('#userInfo').show();
				$('#userName').text(userData.nickName); // Assuming userData contains student's name
				$('#userAvatar').attr('src', userData.avatar); // Assuming userData contains avatar URL
			} else {
				// Show login and registration links
				$('#loginLink, .corner a[href="sign-up.html"]').show();

				// Hide user information
				$('#userInfo').hide();
			}

			// 调用函数以获取第一页，每页8条数据的岗位信息
			window.getJobs = function (pageNum, pageSize) {
				$.ajax({
					url: 'http://localhost:1970/admin/system/job/searchJob/' + pageNum + '/' + pageSize, // 替换为您的API端点
					type: 'GET',
					dataType: 'json',
					success: function (result) {
						// 成功获取数据后的处理
						console.log(result.data); // 在控制台中打印响应数据
						// 在这里处理您的数据，例如更新页面内容等
						displayJobs(result.data.list);
						console.log(result.data.list)
					},
					error: function (xhr, status, error) {
						// 请求出错时的处理
						console.error(error); // 在控制台中打印错误信息
						// 在这里添加适当的错误处理逻辑
					}
				});
			}
			function displayJobs(jobs) {
				var jobListings = $('#jobListings');
				jobListings.empty(); // 清空任何现有内容

				jobs.forEach(function (job) {
					var jobItem = $('<li></li>'); // 创建新的 li 元素

					var cookieCard = $('<div class="cookie-card"></div>');

					var titleSpan = $('<span class="title">' + job.name + '</span><br>');
					var salarySpan = $('<span class="title">' + job.salary + '</span>');
					var descriptionP = $('<p class="description">Description: ' + job.description + '</p>');

					var detailsDiv = $('<div></div>');
					detailsDiv.append('<span>' + job.address + '</span>');
					detailsDiv.append('<span>' + job.hours + 'h</span>');
					detailsDiv.append('<span>' + job.company + '</span>');
					detailsDiv.append('<p>' + job.type + '</p>');
					detailsDiv.append('<p>' + job.datePosted + '</p>');

					var actionsDiv = $('<div class="actions"></div>');
					var detailsButton = $('<button class="pref">查看详情</button>');
					var applyButton = $('<button class="accept">申请</button>');

					actionsDiv.append(detailsButton);
					actionsDiv.append(applyButton);

					cookieCard.append(titleSpan);
					cookieCard.append(salarySpan);
					cookieCard.append(descriptionP);
					cookieCard.append(detailsDiv);
					cookieCard.append(actionsDiv);

					jobItem.append(cookieCard);

					jobListings.append(jobItem);
				});
			}
			// 调用函数以获取第一页，每页8条数据的岗位信息
			getJobs(1, 8);
		});



	</script>
</body>

</html>